﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GalaSoft.MvvmLight;

namespace HospitalTracking.Model
{
    [Serializable]
    public class Treatment : ObservableObject
    {
        public const string NamePropertyName = "Name";
        private string _Name = string.Empty;
        public string Name
        {
            get { return _Name; }
            set
            {
                if (_Name != value)
                {
                    _Name = value;
                    RaisePropertyChanged(NamePropertyName);
                }
            }
        }


        public const string DatePropertyName = "Date";
        private DateTime _Date = DateTime.Now;
        public DateTime Date
        {
            get { return _Date; }
            set
            {
                if (_Date != value)
                {
                    _Date = value;
                    RaisePropertyChanged(DatePropertyName);
                }
            }
        }

        public const string DescriptionPropertyName = "Description";
        private string _Description = string.Empty;
        public string Description
        {
            get { return _Description; }
            set
            {
                if (_Description != value)
                {
                    _Description = value;
                    RaisePropertyChanged(DescriptionPropertyName);
                }
            }
        }

        public const string OwnerPropertyName = "Owner";
        private string _Owner = string.Empty;
        public string Owner
        {
            get { return _Owner; }
            set
            {
                if (_Owner != value)
                {
                    _Owner = value;
                    RaisePropertyChanged(OwnerPropertyName);
                }
            }
        }



        public Treatment(string name, DateTime date, string description, string owner)
        {
            this.Name = name;
            this.Date = date;
            this.Description = description;
            this.Owner = owner;
        }


    }
}
